import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-18
 * Time: 9:06
 */
public class Demo7 {
    public static void main(String[] args) throws IOException {
        File f=new File("wang.txt");
      f.createNewFile();
        File dir=new File("./www");
        dir.mkdir();
      File f2=new File("./www/wang.txt");
      f.renameTo(f2);


    }
}
